package threaddemo2;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-08-06
 * Time: 17:52
 */
//测试
public class Testdemo {
    public static void main(String[] args) {
        //参数对象
        MyRunnable r1 = new MyRunnable();
        //线程实例
        Thread t = new Thread(r1);
        //启动线程
        t.start();
        
        MyRunnable r2=new MyRunnable();
        Thread t2=new Thread(r2);
        t2.start();
    }
}
